package org.csu.newpetstoreback.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.csu.newpetstoreback.entity.Item;

import java.math.BigDecimal;

@Data
public class CartItem {

    //cart表中的字段
    private int qty;

    //item表中的字段
    private BigDecimal listPrice;
    private String itemId;
    @JsonProperty("iImage")
    private String iImage;
    @JsonProperty("iName")
    private String iName;
    @JsonProperty("iDescn")
    private String iDescn;



    //与inventory表里的qty属性判断有关
    @JsonProperty("inStock")
    private boolean inStock;

    //与item的listprice和cart的qty相关
    private BigDecimal total;




}
